import pygame
from pygame.locals import *
from State import State
from StateMachine import StateMachine
from Arena import Arena
from GuiTest import *
import cProfile

screen_size = (800,600)
pygame.init()
screen = pygame.display.set_mode(screen_size, SRCALPHA) #|FULLSCREEN)
pygame.display.set_caption("BBClassic")
print screen.get_flags()
machine = StateMachine(_debug=True)
machine.push(GuiTest(screen))
#machine.push(EditLayer())
#machine.push(Arena(screen))
while machine.top():
	current = machine.top()
	if current:
		if current.run:
			current.update()
			current.draw()
		else:
			machine.pop()
	else:
		pass
		